<template>
  <div class="icon-list">
    <span class="icon-item" v-for="c in list" :key="c.icon">
      <i class="iconfont" :class="[c.icon]"></i>
      <span class="icon-name">{{ c.name }}</span>
    </span>
  </div>
</template>

<script>
export default {
  name: 'IconList',
  data() {
    return {
      list: [
        { icon: 'bee-gouwuche', name: '新峰超市' },
        { icon: 'bee-fuzhuang', name: '新峰服饰' },
        { icon: 'bee-diqiu', name: '全球购' },
        { icon: 'bee-flash', name: '新蜂生鲜' },
        { icon: 'bee-express', name: '新蜂到家' },
        { icon: 'bee-chongzhi', name: '充值缴费' },
        { icon: 'bee-pindan', name: '9.9拼单' },
        { icon: 'bee-quan', name: '领券' },
        { icon: 'bee-shengqian', name: '省钱' },
        { icon: 'bee-quanbu', name: '全部' }
      ]
    }
  }
}
</script>

<style lang="less" scoped>
@import '../../common/style/mixin.less';
.icon-list {
  display: inline-flex;
  flex-wrap: wrap;
  padding-top: 15px;
  background-color: #fff;
  .icon-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 20%;
    > i {
      color: @primary;
      font-size: 28px;
    }
    > .icon-name {
      padding: 10px 0;
    }
  }
}
</style>
